using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MuaDeal
{
    public partial class MainAD : Form
    {
        public MainAD()
        {
            InitializeComponent();
        }

        private void btthoat_Click(object sender, EventArgs e)
        {
            this.Close();
            DangNhap frm = new DangNhap();
            this.Visible = false;
            frm.ShowDialog();
            this.Close();
        }

        private void rdbtnxemdsuser_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbtnxemdsuser.Checked == true)
            {
                XemDSUser frm = new XemDSUser();
                frm.ShowDialog();rdbtnxemdsuser.Checked = false;
            }
            
        }

        private void rdbtnxemdsnv_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbtnxemdsnv.Checked == true)
            {
                XemDSNhanVien frm = new XemDSNhanVien();
                frm.ShowDialog(); rdbtnxemdsnv.Checked = false;
            }
        }

        private void rdbtnxemdssp_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbtnxemdssp.Checked == true)
            {
                XemDSSanPham frm = new XemDSSanPham();
                frm.ShowDialog(); rdbtnxemdssp.Checked = false;
            }
        }

        private void rdbtncapnhatttuser_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbtncapnhatttuser.Checked == true)
            {
                Capnhattinhtranguser frm = new Capnhattinhtranguser();
                frm.ShowDialog(); rdbtncapnhatttuser.Checked = false;
            }
        }


    }
}